<style>
    #contents{
        width: 98%;
    }
</style>
<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">.
            <div class="layui-form-item">
                <label class="layui-form-label">标题 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" placeholder="标题"  name="title" class="layui-input ">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">详细内容 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <script id="contents" type="text/plain" name="contents" ></script>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">报名时间 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" placeholder="报名时间" id="datetime"  name="datetime" class="layui-input ">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">状态 <span class="request-tips">*</span></label>
                <div class="layui-input-inline">
                    <select name="status">
                        <option value="1">开放</option>
                        <option value="0">关闭</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <a href="javascript:history.go(-1);" class="layui-btn layui-btn-primary" >返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
